---
import AsideItem from "@components/common/aside/AsideItem.astro";
---
<!-- 侧边用户 -->
<AsideItem>
  <th:block th:with="author=${@commonTag.getUserVo('admin')}"> 
  <div class="w-full rounded-lg">
    <div class="flex flex-col items-center pb-4">
      <img
        class="w-24 h-24 my-3 rounded-full shadow-lg"
        src="/static/img/avatar.jpg"
        th:src="${imgPrefix+author.avatar}"
        th:alt="${author.nickName}"
      />
      <h5
        class="mb-1 text-xl font-medium text-gray-900 dark:text-white"
        th:text="${author.nickName}"
      >
        止戈
      </h5>
      <span
        class="text-sm text-gray-500 dark:text-gray-400"
        th:text="${author.remark}">努力让未来变得美好</span
      >
      <div class="flex mt-4 lg:mt-6">
        <a
          th:if="${#strings.isEmpty(webConfig['oly.web.theme.nice.git.gitee'])}"
          th:href="${webConfig['oly.web.theme.nice.git.gitee']}"
          target="_blank"
          class="py-2 px-4 ms-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
        >
          <svg
            class="w-6 h-6 fill-cyan-500 hover:fill-cyan-900"
            viewBox="0 0 1024 1024"
            version="1.1"
            xmlns="http://www.w3.org/2000/svg"
            fill="currentColor"
            p-id="8001"
            ><path
              d="M512 992C246.896 992 32 777.104 32 512S246.896 32 512 32s480 214.896 480 480-214.896 480-480 480z m242.952-533.328H482.383a23.712 23.712 0 0 0-23.71 23.712l-0.025 59.256c0 13.08 10.608 23.712 23.688 23.712h165.96c13.104 0 23.712 10.608 23.712 23.688v11.856a71.112 71.112 0 0 1-71.112 71.112H375.68a23.712 23.712 0 0 1-23.688-23.712V423.128a71.112 71.112 0 0 1 71.088-71.112h331.824a23.712 23.712 0 0 0 23.688-23.712l0.072-59.256a23.712 23.712 0 0 0-23.688-23.712H423.08a177.769 177.769 0 0 0-177.769 177.792v331.825c0 13.104 10.609 23.712 23.713 23.712h349.632A159.984 159.984 0 0 0 778.64 618.681V482.36a23.712 23.712 0 0 0-23.712-23.688z"
              p-id="8002"></path></svg
          >
        </a>

        <a
          th:if="${#strings.isEmpty(webConfig['oly.web.theme.nice.git.gihub'])}"
          th:href="${webConfig['oly.web.theme.nice.git.gihub']}"
          class="py-2 px-4 ms-2 text-sm font-medium text-gray-900 focus:outline-none bg-white rounded-lg border border-gray-200 hover:bg-gray-100 hover:text-blue-700 focus:z-10 focus:ring-4 focus:ring-gray-100 dark:focus:ring-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:border-gray-600 dark:hover:text-white dark:hover:bg-gray-700"
        >
          <svg
            class="w-6 h-6 fill-cyan-500 hover:fill-cyan-900"
            aria-hidden="true"
            xmlns="http://www.w3.org/2000/svg"
            width="24"
            height="24"
            fill="currentColor"
            viewBox="0 0 24 24"
          >
            <path
              fill-rule="evenodd"
              d="M12.006 2a9.847 9.847 0 0 0-6.484 2.44 10.32 10.32 0 0 0-3.393 6.17 10.48 10.48 0 0 0 1.317 6.955 10.045 10.045 0 0 0 5.4 4.418c.504.095.683-.223.683-.494 0-.245-.01-1.052-.014-1.908-2.78.62-3.366-1.21-3.366-1.21a2.711 2.711 0 0 0-1.11-1.5c-.907-.637.07-.621.07-.621.317.044.62.163.885.346.266.183.487.426.647.71.135.253.318.476.538.655a2.079 2.079 0 0 0 2.37.196c.045-.52.27-1.006.635-1.37-2.219-.259-4.554-1.138-4.554-5.07a4.022 4.022 0 0 1 1.031-2.75 3.77 3.77 0 0 1 .096-2.713s.839-.275 2.749 1.05a9.26 9.26 0 0 1 5.004 0c1.906-1.325 2.74-1.05 2.74-1.05.37.858.406 1.828.101 2.713a4.017 4.017 0 0 1 1.029 2.75c0 3.939-2.339 4.805-4.564 5.058a2.471 2.471 0 0 1 .679 1.897c0 1.372-.012 2.477-.012 2.814 0 .272.18.592.687.492a10.05 10.05 0 0 0 5.388-4.421 10.473 10.473 0 0 0 1.313-6.948 10.32 10.32 0 0 0-3.39-6.165A9.847 9.847 0 0 0 12.007 2Z"
              clip-rule="evenodd"></path>
          </svg>
        </a>
      </div>
      <div class="flex mt-2">
        <a
          th:href="${'mailto:'+webConfig['oly.web.theme.nice.email']}"
          th:if="${#strings.isEmpty(webConfig['oly.web.theme.nice.email'])}"
          class="p-2"
        >
          <svg
            class="w-6 h-6 fill-cyan-500 hover:fill-cyan-900"
            aria-hidden="true"
            xmlns="http://www.w3.org/2000/svg"
            width="24"
            height="24"
            fill="currentColor"
            viewBox="0 0 24 24"
          >
            <path
              d="M2.038 5.61A2.01 2.01 0 0 0 2 6v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6c0-.12-.01-.238-.03-.352l-.866.65-7.89 6.032a2 2 0 0 1-2.429 0L2.884 6.288l-.846-.677Z"
            ></path>
            <path
              d="M20.677 4.117A1.996 1.996 0 0 0 20 4H4c-.225 0-.44.037-.642.105l.758.607L12 10.742 19.9 4.7l.777-.583Z"
            ></path>
          </svg>
        </a>
        <a
          th:href="${webConfig['oly.web.theme.nice.qq']}"
          th:if="${#strings.isEmpty(webConfig['oly.web.theme.nice.qq'])}"
          class="p-2"
        >
          <svg
            class="w-6 h-6 fill-cyan-500 hover:fill-cyan-900"
            fill="currentColor"
            viewBox="0 0 1024 1024"
            xmlns="http://www.w3.org/2000/svg"
            p-id="998"
            ><path
              d="M116.435 593.714c-33.54 78.964-38.985 154.297-12.059 168.37 18.572 9.696 47.686-12.382 74.936-52.909 10.791 44.157 37.493 84.137 75.633 116.21-40.004 14.768-66.135 38.886-66.135 66.232 0 44.954 70.709 81.302 157.978 81.302 78.716 0 143.907-29.538 155.94-68.371 3.232-0.049 15.663-0.049 18.796 0 12.083 38.784 77.324 68.371 155.989 68.371 87.267 0 157.978-36.398 157.978-81.302 0-27.297-26.105-51.464-66.135-66.232 38.089-32.123 64.889-72.053 75.631-116.21 27.251 40.527 56.29 62.605 74.887 52.909 26.95-14.073 21.631-89.456-12.032-168.37-26.355-62.058-62.11-107.754-89.457-117.848 0.398-3.929 0.596-7.958 0.596-11.935 0-23.968-6.661-46.146-18.049-64.196 0.199-1.393 0.199-2.834 0.199-4.227 0-11.038-2.636-21.381-7.114-30.332-6.909-161.309-111.93-289.402-281.866-289.402-170.036 0-275.106 128.093-281.943 289.402-4.525 9.001-7.135 19.343-7.135 30.332 0 1.393 0.099 2.835 0.15 4.227-11.288 18.05-17.951 40.178-17.951 64.196 0 3.978 0.15 7.955 0.498 11.935-27.151 10.094-63.028 55.841-89.333 117.848z"
              stroke-linecap="round"
              stroke-linejoin="round"
              p-id="999"></path></svg
          >
        </a>
        <a
          th:href="${webConfig['oly.web.theme.nice.weiBo']}"
          th:if="${#strings.isEmpty(webConfig['oly.web.theme.nice.weiBo'])}"
          class="p-2"
        >
          <svg
            class="w-6 h-6 fill-cyan-500 hover:fill-cyan-900"
            viewBox="0 0 1024 1024"
            version="1.1"
            xmlns="http://www.w3.org/2000/svg"
            p-id="1467"
            ><path
              d="M790.96093903 483.67341766c-10.5387396-3.19044559-15.63014928-5.21627351-18.1332604-10.39637151-0.70483875-1.45752251-2.88587123-5.97479202 1.35599772-16.72941766 19.56744388-49.54292877 11.07787123-78.05388946 0.50762393-93.24876581-10.03695043-14.4468604-31.86361253-31.67806723-78.80657322-31.67806724-36.53725356 0-82.88856979 11.0592-130.53170143 31.13426781l-2.56962734 1.08759885-2.61047066 0.78885926c-5.23377777 1.61389402-8.72879772 1.94180741-10.76629516 1.94180741-2.33040228 0-6.57810598-0.47144843-8.88516923-3.64438974-1.22529915-1.6792433-2.8672-5.6165379-0.37575841-13.4491168 15.17620513-49.10648889 11.57849345-87.96130826-10.03228261-109.69694816-12.94732764-12.96483191-31.38516239-19.50792934-54.85372536-19.50792934-68.53739944 0-168.13671567 55.69042963-253.73844787 141.87797151-89.5553641 90.23686382-140.90940171 187.53611851-140.9094017 266.97051168 0 157.85353846 201.42750997 252.18406838 396.16488661 252.18406838 265.05321026 0 427.80677835-156.65858005 427.80677835-268.96716582 0-58.307902-42.4805379-106.39914303-113.62257322-128.66691282zM477.88183704 792.0146963c-11.17239431 1.10510313-22.40547008 1.66057208-33.37481482 1.66057208-115.49903133 0-205.12674644-59.03024502-213.11452992-140.36560228-8.89683875-90.58344843 85.40335043-171.64340513 214.68524673-184.52538348a339.12896183 339.12896183 0 0 1 33.41099031-1.67924331c115.47569231 0 205.0917379 59.01974245 213.06201709 140.35393277 8.866498 90.61378918-85.43369117 171.67374587-214.66890939 184.55572422z m478.4198017-354.34717721a30.6091396 30.6091396 0 0 1-29.69424957-37.7602188 183.65016979 183.65016979 0 0 0 5.07857322-42.92981425c0-100.30415498-81.60492308-181.91374587-181.91607977-181.91374587-7.65870313 0-15.36641824 0.47845014-22.90025755 1.42134701a30.49477835 30.49477835 0 0 1-33.48917608-27.17246723l-0.00583475-0.04201026a30.48310883 30.48310883 0 0 1 26.0265208-33.48334131 246.97362963 246.97362963 0 0 1 30.36991453-1.87529117c134.02672136 0 243.05500627 109.03995441 243.05500627 243.06550883 0 19.37723077-2.28839202 38.65760456-6.79982678 57.29848888a30.50178005 30.50178005 0 0 1-29.67674531 23.39737893l-0.04784501-0.00583476z"
              p-id="1468"></path><path
              d="M849.42404558 398.17437721a27.21564444 27.21564444 0 0 1-26.77220285-31.88111681c0.80519658-4.61295954 1.14127864-9.38695841 1.00941311-14.1842963a70.10811624 70.10811624 0 0 0-21.99353619-49.01780056 69.51647179 69.51647179 0 0 0-48.02005697-19.11933448c-0.72234303 0-3.04574359 0.04784502-3.04574359 0.04784501a26.94607864 26.94607864 0 0 1-27.04877038-26.23540513 27.1082849 27.1082849 0 0 1 7.39730599-19.60945412 26.96474986 26.96474986 0 0 1 18.97579942-8.51407864 124.01894473 124.01894473 0 0 1 89.07224616 33.92561595 123.65485585 123.65485585 0 0 1 38.9913527 86.96823249 125.57799202 125.57799202 0 0 1-1.79827235 25.130302 27.16196467 27.16196467 0 0 1-26.75469859 22.5011601h-0.0361755v-0.01166951h0.02333904zM541.03608888 600.62413675c-11.86089572-24.55616183-35.71805356-43.08385185-65.48932194-50.81607293a126.40302678 126.40302678 0 0 0-32.15068262-4.09249915c-50.7203829 0-98.63191338 28.26706781-119.22744159 70.34734131-12.07561482 24.68802735-13.21572649 51.25251282-3.2382906 74.81093106 10.43254701 24.60984159 31.82160228 43.23322165 60.23803988 52.48831453a127.20939031 127.20939031 0 0 0 39.2422473 6.10549059c51.8313208 0 101.40459031-30.48310883 120.57760456-74.15860512 11.1362188-25.15364103 11.16655954-51.67611624 0.04667806-74.68490029zM389.94503475 697.72034188v-0.05367978c-17.67348149 2.0071567-31.83443875-8.04263021-31.83443874-22.60268489s12.65558974-29.61723077 30.23338119-31.37932764c20.1882621-1.91263362 33.44133106 9.53516125 33.44133106 24.20257551-0.00700171 14.46553162-14.26248205 27.82596011-31.84027351 29.8331168z m55.76278062-46.75858234c-6.02263704 4.42157949-13.35342678 3.76925356-16.4656866-1.51120228-3.31647636-5.10891396-2.00832364-13.45028376 3.9127886-17.67348148 7.03205014-5.10891396 14.2613151-3.6093812 17.37474188 1.51703704 3.11225983 5.11474872 0.90788832 13.05468718-4.82184388 17.66764672z"
              p-id="1469"></path></svg
          >
        </a>
        <a
          th:href="${webConfig['oly.web.theme.nice.weiChat']}"
          th:if="${#strings.isEmpty(webConfig['oly.web.theme.nice.weiChat'])}"
          class="p-2"
        >
          <svg
            class="w-6 h-6 fill-cyan-500 hover:fill-cyan-900"
            viewBox="0 0 1024 1024"
            version="1.1"
            xmlns="http://www.w3.org/2000/svg"
            p-id="2444"
            ><path
              d="M353.4 352.5c-18.4 0-33.4 14.9-33.4 33.4 0 18.4 14.9 33.4 33.4 33.4 18.4 0 33.4-14.9 33.4-33.4s-14.9-33.4-33.4-33.4zM502.7 418.4c18.4 0 33.4-14.9 33.5-33.4 0-18.4-14.9-33.4-33.4-33.4-18.4 0-33.4 14.9-33.4 33.4-0.1 18.4 14.8 33.3 33.3 33.4zM587.6 514.1c-7.2-4.1-16-4.1-23.2 0-7.2 4.1-11.6 11.8-11.6 20.1s4.4 16 11.6 20.1c7.2 4.1 16 4.1 23.2 0 7.2-4.1 11.6-11.8 11.6-20.1s-4.4-16-11.6-20.1zM705.4 516c-7.2-4.1-16-4.1-23.2 0-7.2 4.1-11.6 11.8-11.6 20.1s4.4 16 11.6 20.1c7.2 4.2 16 4.2 23.2 0 7.2-4.1 11.6-11.8 11.6-20.1s-4.4-15.9-11.6-20.1z"
              p-id="2445"></path><path
              d="M512 2C230.1 2 2 230.1 2 512s228.1 510 510 510 510-228.1 510-510S793.9 2 512 2z m-87.2 627.7c-26.9 0-48.3-5.6-75.1-11.2l-75.1 37.1 21.3-64c-53.7-37.1-85.3-85.3-85.3-144.7 0-102 96.4-181.8 214.2-181.8 104.7 0 197.5 64 216.1 150.3-6.5-0.9-13.9-0.9-20.4-0.9-102 0-181.8 76-181.8 169.7 0 15.7 2.7 30.6 6.5 44.5-7.4 0.1-13.9 1-20.4 1z m313.4 75.1l15.7 53.7-58.4-32.4c-21.3 5.6-42.7 11.2-64 11.2-102 0-181.8-69.6-181.8-154.8 0-85.3 79.8-154.8 181.8-154.8 96.4 0 181.8 69.6 181.8 154.8 0 47.2-31.5 89.9-75.1 122.3z"
              p-id="2446"></path></svg
          >
        </a>
      </div>
    </div>
  </div>
  </th:block>
</AsideItem> 